using UnityEngine;
using UnityEngine.UI;

namespace GameLogic
{
    public class BuildMenu : MonoBehaviour
    {
        public PlacementController placementController;
        public GameObject[] buildablePrefabs;

        public void OnBuildingButtonClicked(int index)
        {
            if (index >= 0 && index < buildablePrefabs.Length)
            {
                placementController.StartPlacement(buildablePrefabs[index]);
            }
        }
    }
}


